import '@feidao/web/atom/nodejs/interfaces';
import html from './html';
import s from './ns';
import init from '@feidao/web/framework/nodejs/d/page';

////////////////////////////////////////////////////////////////////////////////
// import components
import c001 from '../teach-staff-export-001/n';
////////////////////////////////////////////////////////////////////////////////

feidao_exports.default = async (url: string) => {
	const daoke = {
	};

	await init(html, url, s, daoke, c001/** c002, c003*/);
	return `
	<!DOCTYPE html>
	<html>

	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>教职工</title>
		<!-- @daoke dependencies begin -->
		<!-- todo: need use cdn -->
		<link rel="stylesheet" href="../css/iconfont.css">
		<link rel="stylesheet" href="../css/daokes.css">
		<link href="https://cdn.jsdelivr.net/npm/feidao-css/feidao.css" type="text/css" rel="stylesheet">
		<!-- @daoke dependencies end -->

		<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
		<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
		<script src="./js/feidao.js"></script>

		<script type="text/javascript">
			window.addEventListener('WebComponentsReady', function () {
				var t = document.createElement('script');
				t.src = './js/teach-staff-export.js';
				document.head.appendChild(t);
			});
		</script>
	</head>
	<body>
	${html.toString()}
	</body>
</html>
	`;
};
